<%--@elvariable id="workLicenseApply" type="com.weitu.worklicense.entity.WorkLicenseApply"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>作业许可申请查看</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/workLicense/apply/edit.js"></script>
</head>
<body>
<form id="form1" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">作业类型:</label>
                    <input id="workTypeId" name="workTypeId" readonly value="${workLicenseApply.workTypeId}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">作业级别:</label>
                    <input id="workLevelId" name="workLevelId" readonly value="${workLicenseApply.workLevelId}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划开始日期:</label>
                    <input id="planStartDate" name="planStartDate" readonly value="${workLicenseApply.planStartDate}" class="easyui-datebox" data-options="required:true,validType:'startDateCompare[\'#planEndDate\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">计划结束日期:</label>
                    <input id="planEndDate" name="planEndDate" readonly value="${workLicenseApply.planEndDate}" class="easyui-datebox" data-options="required:true,validType:'endDateCompare[\'#planStartDate\']'" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">施工部门/施工承包商:</label>
                    <select id="isCheckContractor" name="isCheckContractor" readonly class="easyui-combobox"
                            data-options="required:true,editable:false"
                            style="width:240px;">
                        <option <c:if test="${workLicenseApply.isCheckContractor == 1}">selected</c:if> value="1">承包商</option>
                        <option <c:if test="${workLicenseApply.isCheckContractor == 0}">selected</c:if> value="0">部门</option>
                    </select>
                </div>
                <div class="form_one">
                    <label class="lable-style">施工承包商:</label>
                    <input id="contractorAuditName" readonly name="contractorAuditName" value="${workLicenseApply.contractorAudit.contractorName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" readonly name="contractorAuditId" value="${workLicenseApply.contractorAuditId}" id="contractorAuditId" >
                </div>
                <div class="form_one">
                    <label class="lable-style">施工部门:</label>
                    <input id="deptId" name="deptId" readonly class="easyui-textbox" value="${workLicenseApply.deptId}" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">申请人:</label>
                    <input id="applyUserName" name="applyUserName" readonly value="${workLicenseApply.applyUserName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="applyUserId" readonly value="${workLicenseApply.applyUserId}" id="applyUserId" >
                </div>
                <div class="form_one">
                    <label class="lable-style">申请部门:</label>
                    <input id="applyDeptId" name="applyDeptId" readonly value="${workLicenseApply.applyDeptId}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">申请日期:</label>
                    <input id="applyDate" name="applyDate" readonly value="${workLicenseApply.applyDate}" class="easyui-datebox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">作业地点:</label>
                    <input id="workPoint" name="workPoint" readonly value="${workLicenseApply.workPoint}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">作业内容:</label>
                    <input id="workContent" name="workContent" readonly value="${workLicenseApply.workContent}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="accessoryList" type="com.weitu.accessory.bean.AccessoryPackageInfo"--%>
                    <accessory:accessorySimple packageInfos="${accessoryList}" packageKey="apply" uploadUserId="${sessionScope.loginUser.id}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
